import _ajax from '@/utils/http.js'
// import { getLocalToken } from '@/utils/token.js'

function Userarticles (params) {
  return _ajax({
    url: '/app/v1_1/articles',
    params
  })
}
function Userchannels () {
  return _ajax({
    url: '/app/v1_0/user/channels'
  })
}
function Channels () {
  return _ajax({
    url: '/app/v1_0/channels'
  })
}
function Articledislikes (data) {
  return _ajax({
    url: '/app/v1_0/article/dislikes',
    method: 'post',
    needToken: true,
    data
  })
}
//  拉黑用户
function goBlackLists (data) {
  return _ajax({
    url: '/app/v1_0/user/blacklists',
    method: 'POST',
    data,
    needToken: true
  })
}
// 反馈内容
function Articlereports (data) {
  return _ajax({
    url: '/app/v1_0/article/reports',
    method: 'post',
    data,
    needToken: true
  })
}
export {
  Userarticles,
  Userchannels,
  Channels,
  Articledislikes,
  goBlackLists,
  Articlereports
}
